package homework_03;

/**
 * 员工年薪增长问题
 */
public class Test_03 {
    public static void main(String[] args) {
        int sal = 30000;//第一年单独计算输出
        int sum = 30000;
        System.out.println("第" + 1 + "年年薪为" + sal + "元");
        for (int i=2;i<=10;i++){//2~10共九次
            sal = sal * 106 / 100;
            sum += sal;
            System.out.println("第" + i + "年年薪为" + sal + "元");
        }
        System.out.println("10年工资和为" + sum);
    }
}
